<?php 
	$baseAsset = $this->baseUrl().'/public/assets/';
	$_moduleName = $controllerName = Zend_Controller_Front::getInstance()->getRequest()->getModuleName();
?>

<?php 
	$menuOptions = array(
		array('icon'=>'protocolo.png','title'=>'Protocolo','link'=>array('module' => 'protocol','controller'=>'index','action'=>'index')),
		array('icon'=>'client.png','title'=>'Cliente','link'=>array('module' => 'client','controller'=>'index','action'=>'index')),
		array('icon'=>'users.png','title'=>'Usuário','link'=>array('module' => 'user','controller'=>'index','action'=>'index')),
		array('icon'=>'admin.png','title'=>'Administrativo','link'=>array('module' => 'admin','controller'=>'index','action'=>'index')),
		array('icon'=>'logout.png','title'=>'Sair','link'=>array('module' => 'user','controller'=>'auth','action'=>'logout')),
	)
?>

<ul>
	<?php foreach($menuOptions as $option) : ?>
		<?php 
			if($_moduleName == $option['link']['module'] && $option['title'] != 'Sair') {
				$spanClass = 'menu-active';
			} else {
				$spanClass = null;
			}
		?>
		
		<li><a href="<?=$this->url($option['link'], null, true); ?>"><img src="<?=$baseAsset?>img/layout/menu/<?=$option['icon']?>" border=0/><span class="<?=$spanClass?>"><?=$option['title']?></span></a></li>
	
	<?php endforeach; ?>
</ul>
